﻿using System;

namespace NP.BPMReportPlatform.Entities.BPM_Engine
{
    /// <summary>
    /// Instances
    /// </summary>
    public class Instances
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int InstanceId { get; set; }

        /// <summary>
        /// 流程id
        /// </summary>
        public Guid ProcessId { get; set; }

        /// <summary>
        /// 流程版本冗余
        /// </summary>
        public string ProcessVersion { get; set; }

        /// <summary>
        /// 编号（流水号生成）
        /// </summary>
        public string Number { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public string Topic { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        public string Summary { get; set; }

        /// <summary>
        /// 所有人id
        /// </summary>
        public Guid OwnerUserId { get; set; }

        /// <summary>
        /// 所有人名字
        /// </summary>
        public string OwnerUserName { get; set; }

        /// <summary>
        /// 发起人id（被代理人）
        /// </summary>
        public Guid StartUserId { get; set; }

        /// <summary>
        /// 发起人名字
        /// </summary>
        public string StartUserName { get; set; }

        /// <summary>
        /// 来源（BPM、OA等）
        /// </summary>
        public string Source { get; set; }

        /// <summary>
        /// 分类id
        /// </summary>
        public Guid CategoryId { get; set; }

        /// <summary>
        /// 业态id
        /// </summary>
        public Guid DomainId { get; set; }

        /// <summary>
        /// 标签id
        /// </summary>
        public Guid TagId { get; set; }

        /// <summary>
        /// 发起人所属组织名称路径
        /// </summary>
        public string OrganizationNamePath { get; set; }

        /// <summary>
        /// 紧急度
        /// </summary>
        public int Urgency { get; set; }

        /// <summary>
        /// 业务类型路径
        /// </summary>
        public string BusinessTypePath { get; set; }

        /// <summary>
        /// 顶部业务类型
        /// </summary>
        public Guid TopBusinessType { get; set; }

        /// <summary>
        /// 尾部业务类型
        /// </summary>
        public Guid BottomBusinessType { get; set; }

        /// <summary>
        /// 顶部业务类型名称
        /// </summary>
        public string TopBusinessTypeName { get; set; }

        /// <summary>
        /// 岗位ID
        /// </summary>
        public Guid PositionId { get; set; }

        /// <summary>
        /// 岗位名称
        /// </summary>
        public string PositionName { get; set; }

        /// <summary>
        /// 发起人所属组织Id
        /// </summary>
        public int OrganizationId { get; set; }

        /// <summary>
        /// 组织路径
        /// </summary>
        public string OrganizationPath { get; set; }

        /// <summary>
        /// 流程名称
        /// </summary>
        public string ProcessName { get; set; }

        /// <summary>
        /// 业务标识类型
        /// </summary>
        public string BTID { get; set; }

        /// <summary>
        /// 业务标识主键
        /// </summary>
        public string BOID { get; set; }
    }
}
